<?php
namespace app\common\model;

class FilmTagRelationModel extends \think\Model
{
    protected $table = 'db_film_tag_relation';

    public function getTagNameAttr()
    {
        return FilmTagModel::cache(true)->where('id', '=', $this->tag_id)->value('name');
    }
}
